<!DOCTYPE html>
<html lang="zh" class="dark">
<head>
  <meta charset="utf-8"/>
  <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
  <meta name="viewport"
        content="width=device-width,maximum-scale=1,minimum-scale=1,initial-scale=1,user-scalable=no"/>
  <meta name="description" content=""/>
  <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
  <title>资源广场</title>
  <#include "/common/public.html"/>
  <link rel="stylesheet" type="text/css" href="/css/index.css"/>
</head>

<body>
<div outline="0" hidefocus="true" id="app" @scroll="LoadMore()">
  <#include "/common/header.html"/>
  <div>
    <div class="square-header-container">
      <div class="square-header-logo-container">
        Logo
      </div>
    </div>
    <div class="square-title">
      Mou小可爱的广场
    </div>
    <div class="square-desc">
      即刻获取常用设计资源，设计快人一步
    </div>

    <input type="hidden" id="cid"  value="${cid}">
    <div class="square-operation">
      <div class="square-operation-container">
        <div class="square-operation-select">
          <div data-v-566ba0f2="" data-v-53b4124c="" class="basic-popover master-select theme_simple"
               slot="header" style="width: 120px;">
            <div data-v-566ba0f2="" tabindex="0" class="trigger" style="display: inline-block;">
              <div data-v-566ba0f2="" class="">
                <div data-v-566ba0f2="" class="simple-drop" style="width: 200px;">
                  <div data-v-566ba0f2="" style="padding: 0 10px" class="simple-title simple-title-small" @click="searchOrder(0)" :class="{'simple-title-small-active':orderindex==0}">全部</div>
                  <div data-v-566ba0f2="" style="padding: 0 10px" class="simple-title simple-title-small" @click="searchOrder(1)" :class="{'simple-title-small-active':orderindex==1}">时间升序</div>
                  <div data-v-566ba0f2="" style="padding: 0 10px" class="simple-title simple-title-small" @click="searchOrder(2)" :class="{'simple-title-small-active':orderindex==2}">时间降序</div>
                </div>
              </div>
            </div>
            <!---->
          </div>
        </div>
        <div class="square-operation-detail" style="position: relative">
          <div class="p4 square-operation-item" :class="[cindex==-1 ?'active':'']" @click="searchByCid(0,-1)">
            全部
          </div>
          <div class="p4 square-operation-item" :class="[index==cindex ?'active':'']"
               @click="searchByCid(blogcate.id,index)"
               v-for="(blogcate,index) in blogCategories">
            {{blogcate.categoryTitle}}
          </div>
          <div><a href="/archives" style="position: absolute;right: 50px;z-index: 110;">归档</a></div>
          <div><a href="/blog/add" style="position: absolute;right: 0;z-index: 110;">添加文章</a></div>
        </div>
      </div>
      <!---->
      <div id="square-item-container" class="square-item-container" style="overflow: hidden">
        <div v-for="(blog,index) in blogList "
             :class="'square-item-detail  animate__animated animate__fadeInLeft animate__delay-'+(index%20 + 1)+'s'">
          <a :href="'/detail/'+blog.id" :title="blog.title" target="_blank" style="color: #fff">
            <div class="square-item-wrapper"
                 :style="'background: url('+blog.img+') 0% 0% / 100% 100%;'"></div>
          </a>
          <div class="square-item-desc p5">
            <a :href="'/detail/'+blog.id" :title="blog.title" target="_blank" style="color: #fff">
              <span class="square-item-name truncate">{{blog.title}} </span>
              <span class="square-item-count">
            <svg width="1em" height="1em" viewbox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg"
                 style="font-size: inherit; transform: rotate(0deg);">
             <path fill-rule="evenodd" clip-rule="evenodd"
                   d="M9.11011 6.00338L9.36465 6.25659C9.48212 6.37344 9.48212 6.56288 9.36465 6.67973L7.42392 8.61025C7.18898 8.84394 6.80808 8.84394 6.57315 8.61025L4.63239 6.6797C4.51492 6.56286 4.51492 6.37341 4.63239 6.25656L4.88699 6.0033C5.00446 5.88645 5.19491 5.88645 5.31237 6.0033L6.51772 7.2023L6.51728 2.30172C6.51726 2.13647 6.65191 2.0025 6.81803 2.00248L7.17806 2.00244C7.34418 2.00242 7.47887 2.13637 7.47888 2.30162L7.47933 7.20242L8.68472 6.00338C8.80219 5.88654 8.99264 5.88654 9.11011 6.00338ZM10.9983 10.9973H3.00195V8.29989C3.00195 8.13421 2.86764 7.99989 2.70195 7.99989H2.30195C2.13627 7.99989 2.00195 8.13421 2.00195 8.29989V11.3973C2.00195 11.7287 2.27058 11.9973 2.60195 11.9973H11.3983C11.7297 11.9973 11.9983 11.7287 11.9983 11.3973V8.29989C11.9983 8.13421 11.864 7.99989 11.6983 7.99989H11.2983C11.1326 7.99989 10.9983 8.13421 10.9983 8.29989V10.9973Z"
                   fill="currentcolor"></path>
            </svg><span> 1215 </span></span>
            </a>
          </div>
        </div>
      </div>
    </div>

    <!--动画效果存储位置-->
    <div id="loading" v-show="loading==1"></div>

    <div v-if="total==0" class="ksd-empty">
      <div>数据还在造就中...</div>
    </div>
    <div class="ksquare-loading ksd-square-loading" v-if="total>0">
      <div>总共有：{{total}}条记录，总{{pages}}页,当前是：{{pageNo}}，每页显示：{{pageSize}}</div>
      <div class="nbtn" v-if="total > pageSize"><button @click="loadMore" style="color: #fff;" v-if="!markflag">点击加载更多</button></div>
      <div class="ksd-no-bottom" v-if="markflag">亲，我是有底线的哦~~~</div>
    </div>

  </div>
</div>

<script src="/js/vue.min.js"></script>
<script src="/js/axios.min.js"></script>
<script src="/js/common/common.js"></script>
<script src="/js/index.js"></script>
<script>ksdLoading("loading",1)</script>
</body>
</html>